HAL LTDC constants migration

This section provides information about the HAL LTDC constant migration.

HAL LTDC error codes constants

HAL1

HAL2

#define HAL_LTDC_ERROR_FU
#define HAL_LTDC_ERROR_NONE
#define HAL_LTDC_ERROR_TE

#define HAL_LTDC_ERROR_INVALID_CALLBACK
#define HAL_LTDC_ERROR_TIMEOUT
#define HAL_LTDC_ERROR_FIFO_UNDERRUN
#define HAL_LTDC_ERROR_NONE
#define HAL_LTDC_ERROR_TRANSFER_ERROR

Removed : These kinds of logical errors are reported by direct function return.

Related concept:


HAL LTDC alpha value constants

HAL1

HAL2

#define LTDC_ALPHA

Removed; this constant was used internally in HAL1 and do not impact user-level operations.


HAL LTDC blending factor 1 options constants

HAL1

HAL2



#define LTDC_BLENDING_FACTOR1_CA
#define LTDC_BLENDING_FACTOR1_PAxCA
 typedef enum
{
  HAL_LTDC_BLENDING_FACTOR1_CA,
  HAL_LTDC_BLENDING_FACTOR1_PA_X_CA
} hal_ltdc_blending_factor1_t;

Related concepts:


HAL LTDC blending factor 2 options constants

HAL1

HAL2



#define LTDC_BLENDING_FACTOR2_CA
#define LTDC_BLENDING_FACTOR2_PAxCA
typedef enum
{
  HAL_LTDC_BLENDING_FACTOR2_1_MINUS_CA,
  HAL_LTDC_BLENDING_FACTOR2_1_MINUS_PA_X_CA
} hal_ltdc_blending_factor2_t;

Related concepts:


HAL LTDC color settings (including frame buffer) constants

HAL1

HAL2

#define LTDC_COLOR
#define LTDC_COLOR_FRAME_BUFFER

Removed; this constant was used internally in HAL1 and do not impact user-level operations.


HAL LTDC data enable polarity options constants

HAL1

HAL2



#define LTDC_DEPOLARITY_AL
#define LTDC_DEPOLARITY_AH
typedef enum
{
 HAL_LTDC_DATA_ENABLE_POLARITY_LOW,
 HAL_LTDC_DATA_ENABLE_POLARITY_HIGH
} hal_ltdc_data_enable_polarity_t;

Related concepts:


HAL LTDC status flags constants

HAL1

HAL2

#define LTDC_FLAG_FU
#define LTDC_FLAG_LI
#define LTDC_FLAG_RR
#define LTDC_FLAG_TE
#define HAL_LTDC_FLAG_FIFO_UNDERRUN
#define HAL_LTDC_FLAG_LINE_INTERRUPT
#define HAL_LTDC_FLAG_RELOAD
#define HAL_LTDC_FLAG_TRANSFER_ERROR

HAL LTDC horizontal sync signal constants

HAL1

HAL2

#define LTDC_HORIZONTALSYNC

Removed; this constant was used internally in HAL1 and do not impact user-level operations.


HAL LTDC horizontal sync polarity options constants

HAL1

HAL2



#define LTDC_HSPOLARITY_AL
#define LTDC_HSPOLARITY_AH
typedef enum
{
 HAL_LTDC_HSYNC_POLARITY_LOW,
 HAL_LTDC_HSYNC_POLARITY_HIGH
} hal_ltdc_hsync_polarity_t;

Related concepts :


HAL LTDC interrupt identifiers constants

HAL1

HAL2

#define LTDC_IT_FU
#define LTDC_IT_LI
#define LTDC_IT_RR
#define LTDC_IT_TE
#define HAL_LTDC_IT_FIFO_UNDERRUN
#define HAL_LTDC_IT_LINE_INTERRUPT
#define HAL_LTDC_IT_RELOAD
#define HAL_LTDC_IT_TRANSFER_ERROR

HAL LTDC layer identifiers constants

HAL1

HAL2



#define LTDC_LAYER_1
#define LTDC_LAYER_2
typedef enum
{
 HAL_LTDC_LAYER_1,
 HAL_LTDC_LAYER_2
} hal_ltdc_layer_t;

Related concepts:


HAL LTDC line number register constants

HAL1

HAL2

#define LTDC_LINE_NUMBER

Removed; this constant was used internally in HAL1 and do not impact user-level operations.


HAL LTDC pixel clock polarity options constants

HAL1

HAL2



#define LTDC_PCPOLARITY_IPC
#define LTDC_PCPOLARITY_IIPC
typedef enum
{
  HAL_LTDC_PIXEL_CLOCK_POLARITY_LOW,
  HAL_LTDC_PIXEL_CLOCK_POLARITY_HIGH
} hal_ltdc_pixel_clock_polarity_t;

Related concepts:


HAL LTDC pixel format options constants

HAL1

HAL2



#define LTDC_PIXEL_FORMAT_AL44
#define LTDC_PIXEL_FORMAT_AL88
#define LTDC_PIXEL_FORMAT_ARGB1555
#define LTDC_PIXEL_FORMAT_ARGB4444
#define LTDC_PIXEL_FORMAT_ARGB8888
#define LTDC_PIXEL_FORMAT_L8
#define LTDC_PIXEL_FORMAT_RGB565
#define LTDC_PIXEL_FORMAT_RGB888
typedef enum
{
  HAL_LTDC_PIXEL_FORMAT_AL44,
  HAL_LTDC_PIXEL_FORMAT_AL88,
  HAL_LTDC_PIXEL_FORMAT_ARGB1555,
  HAL_LTDC_PIXEL_FORMAT_ARGB4444,
  HAL_LTDC_PIXEL_FORMAT_ARGB8888,
  HAL_LTDC_PIXEL_FORMAT_L8,
  HAL_LTDC_PIXEL_FORMAT_RGB565,
  HAL_LTDC_PIXEL_FORMAT_RGB888
} hal_ltdc_pixel_format_t;

Related concepts:


HAL LTDC reload options constants

HAL1

HAL2



#define LTDC_RELOAD_IMMEDIATE
#define LTDC_RELOAD_VERTICAL_BLANKING
typedef enum
{
  HAL_LTDC_RELOAD_IMMEDIATE,
  HAL_LTDC_RELOAD_VERTICAL_BLANKING
} hal_ltdc_reload_type_t;

Related concepts:


HAL LTDC start position register constants

HAL1

HAL2

#define LTDC_STARTPOSITION

Removed; this constant was used internally in HAL1 and do not impact user-level operations.


HAL LTDC stop position register constants

HAL1

HAL2

#define LTDC_STOPPOSITION

Removed; this constant was used internally in HAL1 and do not impact user-level operations.


HAL LTDC vertical sync signal constants

HAL1

HAL2

#define LTDC_VERTICALSYNC

Removed; this constant was used internally in HAL1 and do not impact user-level operations.


HAL LTDC vertical sync polarity options constants

HAL1

HAL2



#define LTDC_VSPOLARITY_AL
#define LTDC_VSPOLARITY_AH
typedef enum
{
  HAL_LTDC_VSYNC_POLARITY_LOW,
  HAL_LTDC_VSYNC_POLARITY_HIGH
} hal_ltdc_vsync_polarity_t;

Related concepts:


HAL LTDC Maximum layer number constant

HAL1

HAL2

#define MAX_LAYER

Moved to DFP device header files.